﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DisplayBoardInfo.Server.Session
{
    class LoggedUser
    {
        private Entities.User user;
        private int userNetworkID;
        private DataManager dataManager = null;

        public LoggedUser()
        { 
        
        }

        public LoggedUser(Entities.User user, int userNetworkID)
        {
            this.user = user;
            this.userNetworkID = userNetworkID;
            if (user.Role.Name == "Lekarz") this.dataManager = new DataManager(user);
        }

        public int UserNetworkID
        {
            get { return userNetworkID; }
            set { userNetworkID = value; }
        }

        public Entities.User User
        {
            get { return user; }
            set { user = value; }
        }

        public DataManager DataManager
        {
            get { return dataManager; }
        } 
    }
}
